<script setup>
	import {
		computed
	} from 'vue'
	import {
		RouterView,
		useRouter
	} from 'vue-router'

	import api from '@/api/api'

	// const key = computed(() => {
	// 	if (!useRouter()?.currentRoute) return '';
	// 	return `${useRouter().currentRoute.value.fullPath}--`;
	// })
	
	import logo from './assets/img/logo.png'
	var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
	link.href = logo;

	// 查询所有的字典
	api.getAllDict();

	// 用户信息
	api.getUser();
</script>

<template>
	<!-- :key -->
	<RouterView />
</template>